package com.laiketui.order.service;

import com.laiketui.order.domain.OrderParentMessage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author jiangxiang
* @description 针对表【lk_order_parent_message】的数据库操作Service
* @createDate 2024-08-20 23:37:56
*/
public interface OrderParentMessageService extends IService<OrderParentMessage> {

    /**
     * 添加订单消息
     * @param userId 用户信息
     * @param storeId 商城ID
     * @param messageType {@link  com.laiketui.order.api.enums.OrderParentMessageType}
     * @param orderParentNo 母单号
     * @param orderStatus 订单状态 {@link  com.laiketui.order.api.enums.OrderTypeEnum }
     * @param messageContent 消息内容
     * @return
     */
    OrderParentMessage addOrderParentMessage(String userId,Integer storeId,Integer messageType,String orderParentNo,Integer orderStatus,String messageContent);
    /**
     * 添加订单消息
     * @param userId 用户信息
     * @param storeId 商城ID
     * @param messageType {@link  com.laiketui.order.api.enums.OrderParentMessageType}
     * @param orderParentNo 母单号
     * @param orderStatus 订单状态 {@link  com.laiketui.order.api.enums.OrderTypeEnum }
     * @param messageContent 消息内容
     * @param photo 图片
     * @return
     */
    OrderParentMessage addOrderParentMessageAndPhoto(String userId,Integer storeId,Integer messageType,String orderParentNo,Integer orderStatus,String messageContent,String photo);

    /**
     * 添加订单消息
     * @param userId 用户信息
     * @param storeId 商城ID
     * @param messageType {@link  com.laiketui.order.api.enums.OrderParentMessageType}
     * @param orderParentNo 母单号
     * @param orderStatus 订单状态 {@link  com.laiketui.order.api.enums.OrderTypeEnum }
     * @param messageContent 消息内容
     * @param photo 图片
     * @return
     */
    OrderParentMessage addOrderParentMessageAndPhotoAndRemark(String userId,Integer storeId,Integer messageType,String orderParentNo,Integer orderStatus,String messageContent,String photo,String remark);

    /**
     * 根据母单号查询消息
     * @param orderParentNo 母单号
     * @return
     */
    List<OrderParentMessage> findByOrderParentNo(String orderParentNo);

    /**
     * 根据母单号获取母单消息
     * @param orderParentNo
     * @return
     */
    List<OrderParentMessage> listByOrderParentNo(String orderParentNo);
}
